<!doctype html>



  


<html class="theme-next mist use-motion" lang="zh-Hans,zh-hk,en,fr-FR,ru,de,ja,id,ko,default">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  
    
      
    

    
  

  

  
    
      
    

    
  

  
    
      
    

    
  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Monda:300,300italic,400,400italic,700,700italic|Roboto Slab:300,300italic,400,400italic,700,700italic|Lobster Two:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Android,JAVA,Unity3D,C#,javaScript,开发者,程序猿,极客,编程,开源,IT网站,Developer,Programmer,Coder,Geek,html,用户体验" />





  <link rel="alternate" href="http://blog.csdn.net/qq_21265915/rss/list" title="WinterSmileSB101 的个人房间" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/images/myHeadImg.jpeg?v=5.1.0" />






<meta name="description" content="成都工业学院14级，学习了各种后台技能，对前端也甚是抱有好感，准备再入坑前端。">
<meta property="og:type" content="website">
<meta property="og:title" content="tags">
<meta property="og:url" content="http://WinterSmileSB101.online/tags/index.html">
<meta property="og:site_name" content="WinterSmileSB101 的个人房间">
<meta property="og:description" content="成都工业学院14级，学习了各种后台技能，对前端也甚是抱有好感，准备再入坑前端。">
<meta property="og:updated_time" content="2017-03-23T14:43:52.689Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="tags">
<meta name="twitter:description" content="成都工业学院14级，学习了各种后台技能，对前端也甚是抱有好感，准备再入坑前端。">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    sidebar: {"position":"right","display":"post","offset":12,"offset_float":0,"b2t":true,"scrollpercent":true},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '6376853978663093000',
      author: 'WinterSmileSB101'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://WinterSmileSB101.online/tags/"/>





  <title>
  

  
    tags | WinterSmileSB101 的个人房间
  
</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  














  
  
    
  

  <div class="container sidebar-position-right  ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">WinterSmileSB101 的个人房间</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">胆小认生，不易相处</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-commonweal">
          <a href="/404.html" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-heartbeat"></i> <br />
            
            公益404
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocapitalize="off" autocomplete="off" autocorrect="off"
             placeholder="搜索..." spellcheck="false"
             type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
  <header class="post-header">

	<h2 class="post-title" itemprop="name headline">tags</h2>



</header>

    
    
      <div class="tag-cloud">
        <div class="tag-cloud-title">
            目前共计 113 个标签
        </div>
        <div class="tag-cloud-tags">
          <a href="/tags/16进制/" style="font-size: 12px; color: #ccc">16进制</a> <a href="/tags/API/" style="font-size: 12px; color: #ccc">API</a> <a href="/tags/Activity/" style="font-size: 15px; color: #adadad">Activity</a> <a href="/tags/AlertDialog/" style="font-size: 12px; color: #ccc">AlertDialog</a> <a href="/tags/Andriod/" style="font-size: 18px; color: #8e8e8e">Andriod</a> <a href="/tags/Android/" style="font-size: 30px; color: #111">Android</a> <a href="/tags/Android-爬虫/" style="font-size: 12px; color: #ccc">Android 爬虫</a> <a href="/tags/Android-遇到的坑/" style="font-size: 12px; color: #ccc">Android 遇到的坑</a> <a href="/tags/AngularJS/" style="font-size: 12px; color: #ccc">AngularJS</a> <a href="/tags/AppBarLayout/" style="font-size: 12px; color: #ccc">AppBarLayout</a> <a href="/tags/AppBarLayout-滑动/" style="font-size: 12px; color: #ccc">AppBarLayout 滑动</a> <a href="/tags/BeautifulSoup4/" style="font-size: 15px; color: #adadad">BeautifulSoup4</a> <a href="/tags/CSS/" style="font-size: 12px; color: #ccc">CSS</a> <a href="/tags/Cartoon8/" style="font-size: 18px; color: #8e8e8e">Cartoon8</a> <a href="/tags/CollapsingToolbarLayout/" style="font-size: 12px; color: #ccc">CollapsingToolbarLayout</a> <a href="/tags/CoordinatorLayout/" style="font-size: 12px; color: #ccc">CoordinatorLayout</a> <a href="/tags/EditText/" style="font-size: 12px; color: #ccc">EditText</a> <a href="/tags/Face-Detector/" style="font-size: 12px; color: #ccc">Face Detector</a> <a href="/tags/Fragment-layout/" style="font-size: 12px; color: #ccc">Fragment layout</a> <a href="/tags/Github/" style="font-size: 12px; color: #ccc">Github</a> <a href="/tags/Gson/" style="font-size: 12px; color: #ccc">Gson</a> <a href="/tags/Hbuilder/" style="font-size: 12px; color: #ccc">Hbuilder</a> <a href="/tags/Hexo/" style="font-size: 24px; color: #4f4f4f">Hexo</a> <a href="/tags/IOnic/" style="font-size: 12px; color: #ccc">IOnic</a> <a href="/tags/JSP/" style="font-size: 15px; color: #adadad">JSP</a> <a href="/tags/Json/" style="font-size: 12px; color: #ccc">Json</a> <a href="/tags/Json-字符串/" style="font-size: 12px; color: #ccc">Json 字符串</a> <a href="/tags/LayoutInflater/" style="font-size: 12px; color: #ccc">LayoutInflater</a> <a href="/tags/MUI/" style="font-size: 12px; color: #ccc">MUI</a> <a href="/tags/Nest/" style="font-size: 12px; color: #ccc">Nest</a> <a href="/tags/NestedScrollView/" style="font-size: 12px; color: #ccc">NestedScrollView</a> <a href="/tags/Next/" style="font-size: 15px; color: #adadad">Next</a> <a href="/tags/Node-js/" style="font-size: 21px; color: #6f6f6f">Node.js</a> <a href="/tags/OOM/" style="font-size: 12px; color: #ccc">OOM</a> <a href="/tags/Okhttp/" style="font-size: 12px; color: #ccc">Okhttp</a> <a href="/tags/OnOffsetChangedListener/" style="font-size: 15px; color: #adadad">OnOffsetChangedListener</a> <a href="/tags/OnScrollListener/" style="font-size: 12px; color: #ccc">OnScrollListener</a> <a href="/tags/OverWatch/" style="font-size: 12px; color: #ccc">OverWatch</a> <a href="/tags/PhantomJS/" style="font-size: 15px; color: #adadad">PhantomJS</a> <a href="/tags/Python-类型比较/" style="font-size: 12px; color: #ccc">Python 类型比较</a> <a href="/tags/Python3/" style="font-size: 18px; color: #8e8e8e">Python3</a> <a href="/tags/Random/" style="font-size: 12px; color: #ccc">Random</a> <a href="/tags/RecyclerView/" style="font-size: 15px; color: #adadad">RecyclerView</a> <a href="/tags/RecyclerView-滑动冲突/" style="font-size: 12px; color: #ccc">RecyclerView 滑动冲突</a> <a href="/tags/SDK/" style="font-size: 12px; color: #ccc">SDK</a> <a href="/tags/SeekBar/" style="font-size: 12px; color: #ccc">SeekBar</a> <a href="/tags/Service/" style="font-size: 21px; color: #6f6f6f">Service</a> <a href="/tags/Spider/" style="font-size: 15px; color: #adadad">Spider</a> <a href="/tags/Split/" style="font-size: 12px; color: #ccc">Split</a> <a href="/tags/TabLayout/" style="font-size: 12px; color: #ccc">TabLayout</a> <a href="/tags/UI/" style="font-size: 24px; color: #4f4f4f">UI</a> <a href="/tags/Urllib2/" style="font-size: 18px; color: #8e8e8e">Urllib2</a> <a href="/tags/ViewPager/" style="font-size: 12px; color: #ccc">ViewPager</a> <a href="/tags/Web/" style="font-size: 15px; color: #adadad">Web</a> <a href="/tags/WebView/" style="font-size: 12px; color: #ccc">WebView</a> <a href="/tags/color/" style="font-size: 12px; color: #ccc">color</a> <a href="/tags/cordova/" style="font-size: 12px; color: #ccc">cordova</a> <a href="/tags/editText/" style="font-size: 12px; color: #ccc">editText</a> <a href="/tags/setContentView/" style="font-size: 12px; color: #ccc">setContentView</a> <a href="/tags/tab-导航/" style="font-size: 12px; color: #ccc">tab 导航</a> <a href="/tags/中文网页乱码/" style="font-size: 12px; color: #ccc">中文网页乱码</a> <a href="/tags/云存储器/" style="font-size: 12px; color: #ccc">云存储器</a> <a href="/tags/人脸识别/" style="font-size: 12px; color: #ccc">人脸识别</a> <a href="/tags/侧边栏/" style="font-size: 12px; color: #ccc">侧边栏</a> <a href="/tags/免费/" style="font-size: 12px; color: #ccc">免费</a> <a href="/tags/内存溢出/" style="font-size: 12px; color: #ccc">内存溢出</a> <a href="/tags/分割/" style="font-size: 12px; color: #ccc">分割</a> <a href="/tags/前端开发/" style="font-size: 15px; color: #adadad">前端开发</a> <a href="/tags/动态网页/" style="font-size: 18px; color: #8e8e8e">动态网页</a> <a href="/tags/动态输入框/" style="font-size: 12px; color: #ccc">动态输入框</a> <a href="/tags/动画/" style="font-size: 12px; color: #ccc">动画</a> <a href="/tags/图床/" style="font-size: 12px; color: #ccc">图床</a> <a href="/tags/图片资源/" style="font-size: 12px; color: #ccc">图片资源</a> <a href="/tags/圆形图片控件/" style="font-size: 12px; color: #ccc">圆形图片控件</a> <a href="/tags/多页面操作/" style="font-size: 12px; color: #ccc">多页面操作</a> <a href="/tags/字符串/" style="font-size: 15px; color: #adadad">字符串</a> <a href="/tags/守望先锋/" style="font-size: 12px; color: #ccc">守望先锋</a> <a href="/tags/定制/" style="font-size: 12px; color: #ccc">定制</a> <a href="/tags/对比/" style="font-size: 12px; color: #ccc">对比</a> <a href="/tags/展开与折叠/" style="font-size: 12px; color: #ccc">展开与折叠</a> <a href="/tags/底部播放栏/" style="font-size: 18px; color: #8e8e8e">底部播放栏</a> <a href="/tags/引入Jar包/" style="font-size: 12px; color: #ccc">引入Jar包</a> <a href="/tags/总结/" style="font-size: 15px; color: #adadad">总结</a> <a href="/tags/接口/" style="font-size: 12px; color: #ccc">接口</a> <a href="/tags/控件/" style="font-size: 12px; color: #ccc">控件</a> <a href="/tags/搭建博客/" style="font-size: 12px; color: #ccc">搭建博客</a> <a href="/tags/文字省略/" style="font-size: 12px; color: #ccc">文字省略</a> <a href="/tags/新闻/" style="font-size: 12px; color: #ccc">新闻</a> <a href="/tags/无法弹出软键盘/" style="font-size: 12px; color: #ccc">无法弹出软键盘</a> <a href="/tags/显示集合元素/" style="font-size: 12px; color: #ccc">显示集合元素</a> <a href="/tags/正则表达式/" style="font-size: 12px; color: #ccc">正则表达式</a> <a href="/tags/活动传递-List/" style="font-size: 12px; color: #ccc">活动传递 List</a> <a href="/tags/活动传递对象/" style="font-size: 12px; color: #ccc">活动传递对象</a> <a href="/tags/混合-APP/" style="font-size: 15px; color: #adadad">混合 APP</a> <a href="/tags/滑动冲突/" style="font-size: 12px; color: #ccc">滑动冲突</a> <a href="/tags/漫吧/" style="font-size: 18px; color: #8e8e8e">漫吧</a> <a href="/tags/爬虫/" style="font-size: 27px; color: #303030">爬虫</a> <a href="/tags/独立博客/" style="font-size: 12px; color: #ccc">独立博客</a> <a href="/tags/界面/" style="font-size: 18px; color: #8e8e8e">界面</a> <a href="/tags/相对动画/" style="font-size: 12px; color: #ccc">相对动画</a> <a href="/tags/网易云音乐/" style="font-size: 24px; color: #4f4f4f">网易云音乐</a> <a href="/tags/网易新闻/" style="font-size: 12px; color: #ccc">网易新闻</a> <a href="/tags/自定义-BaseActivity/" style="font-size: 15px; color: #adadad">自定义 BaseActivity</a> <a href="/tags/自定义-Dialog/" style="font-size: 12px; color: #ccc">自定义 Dialog</a> <a href="/tags/自定义-View/" style="font-size: 15px; color: #adadad">自定义 View</a> <a href="/tags/自定义View/" style="font-size: 12px; color: #ccc">自定义View</a> <a href="/tags/获取星期/" style="font-size: 12px; color: #ccc">获取星期</a> <a href="/tags/轮播效果/" style="font-size: 12px; color: #ccc">轮播效果</a> <a href="/tags/透明状态栏/" style="font-size: 12px; color: #ccc">透明状态栏</a> <a href="/tags/遍历/" style="font-size: 12px; color: #ccc">遍历</a> <a href="/tags/静态网页/" style="font-size: 12px; color: #ccc">静态网页</a> <a href="/tags/颜色/" style="font-size: 12px; color: #ccc">颜色</a> <a href="/tags/鸿洋/" style="font-size: 12px; color: #ccc">鸿洋</a>
        </div>
      </div>
    
  </div>


          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel sidebar-panel-active">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="http://on792ofrp.bkt.clouddn.com/17-3-22/29073846-file_1490159480452_d2de.jpg"
               alt="WinterSmileSB101" />
          <p class="site-author-name" itemprop="name">WinterSmileSB101</p>
           
              <p class="site-description motion-element" itemprop="description"></p>
           
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives">
                <span class="site-state-item-count">52</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">26</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">113</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        
          <div class="feed-link motion-element">
            <a href="http://blog.csdn.net/qq_21265915/rss/list" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <!--自己写的社交链接-->
        <div class="links-of-author motion-element">
         <span class="links-of-author-item">
         <a href="https://github.com/WinterSmileSB101" title="Github">
         <i class="fa fa-fw fa-github fa-lg"></i>
         </a>
         </span>
         <span class="links-of-author-item">
                  <a href="http://weibo.com/5602632941/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1" title="微博">
                  <i class="fa fa-fw fa-weibo fa-lg"></i>
                  </a>
                  </span>
         <span class="links-of-author-item">
         <a href="http://www.jianshu.com/users/73344bc7e890/timeline" title="简书">
         <i class="fa fa-fw fa-bookmark fa-lg"></i>
         </a>
         </span>
<br />
        <span class="links-of-author-item">
                 <a href="https://www.douban.com/people/159359470/" title="豆瓣">
                 <i class="fa fa-fw fa-newspaper-o fa-lg"></i>
                 </a>
                 </span>
        <span class="links-of-author-item">
                 <a href="http://blog.csdn.net/qq_21265915" title="CSDN博客">
                 <i class="fa fa-fw fa-bug fa-lg"></i>
                 </a>
                 </span>
        </div>
        <!--自己写的社交链接-->

        
        

        
        

        


      </section>

      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy;  2017.3.20 - 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Powered By - WinterSmileSB101</span>
</div>


<div class="powered-by">
    个人专属
</div>

<div class="theme-info">
  博客 -
  WinterSmileSB101
</div>


        

        
      </div>
    </footer>

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

  
  <script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.0"></script>



  
  

  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.0"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"wintersmilesb101"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
      
      <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
      <script src="/js/src/hook-duoshuo.js?v=5.1.0"></script>
    
    
    <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/js/src/hook-duoshuo.js"></script>
  
















  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length == 0) {
      search_path = "search.xml";
    }
    var path = "/" + search_path;
    // monitor main search box;

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.popup').toggle();
    }
    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';
      $.ajax({
        url: path,
        dataType: "xml",
        async: true,
        success: function( xmlResponse ) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = $( "entry", xmlResponse ).map(function() {
            return {
              title: $( "title", this ).text(),
              content: $("content",this).text(),
              url: $( "url" , this).text()
            };
          }).get();
          var $input = document.getElementById(search_id);
          var $resultContent = document.getElementById(content_id);
          $input.addEventListener('input', function(){
            var matchcounts = 0;
            var str='<ul class=\"search-result-list\">';
            var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
            $resultContent.innerHTML = "";
            if (this.value.trim().length > 1) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var content_index = [];
                var data_title = data.title.trim().toLowerCase();
                var data_content = data.content.trim().replace(/<[^>]+>/g,"").toLowerCase();
                var data_url = decodeURIComponent(data.url);
                var index_title = -1;
                var index_content = -1;
                var first_occur = -1;
                // only match artiles with not empty titles and contents
                if(data_title != '') {
                  keywords.forEach(function(keyword, i) {
                    index_title = data_title.indexOf(keyword);
                    index_content = data_content.indexOf(keyword);
                    if( index_title >= 0 || index_content >= 0 ){
                      isMatch = true;
                      if (i == 0) {
                        first_occur = index_content;
                      }
                    }

                  });
                }
                // show search results
                if (isMatch) {
                  matchcounts += 1;
                  str += "<li><a href='"+ data_url +"' class='search-result-title'>"+ data_title +"</a>";
                  var content = data.content.trim().replace(/<[^>]+>/g,"");
                  if (first_occur >= 0) {
                    // cut out 100 characters
                    var start = first_occur - 20;
                    var end = first_occur + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if(start == 0){
                      end = 50;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    var match_content = content.substring(start, end);
                    // highlight all keywords
                    keywords.forEach(function(keyword){
                      var regS = new RegExp(keyword, "gi");
                      match_content = match_content.replace(regS, "<b class=\"search-keyword\">"+keyword+"</b>");
                    });

                    str += "<p class=\"search-result\">" + match_content +"...</p>"
                  }
                  str += "</li>";
                }
              })};
            str += "</ul>";
            if (matchcounts == 0) { str = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>' }
            if (keywords == "") { str = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>' }
            $resultContent.innerHTML = str;
          });
          proceedsearch();
        }
      });}

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched == false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(function(e){
      $('.popup').hide();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    });
    $('.popup').click(function(e){
      e.stopPropagation();
    });
  </script>





  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("cOFi0858xVYxKW1wnErxqEra-gzGzoHsz", "7LaqqR82XnjzTbkv5eCKw5aW");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  

</body>
</html>
